<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
	<title>WeUI</title>
	<link rel="stylesheet" href="../../css/weui.css"/>
	<script src="../../js/jquery-2.1.1.min.js"></script>
	<script src="../../js/main.js"></script>
	<script src="../../layer/layer.js"></script>
	<title></title>
</head>

<body>


<div id="d" style="padding-bottom:10%;width:100%;height:0;margin-top: 1rem;background-color: black;margin-top: 0px;">
	<div style="width:70%;margin:auto auto;">
		<img src="../../img/index/top.png" style="height: auto;width:100%; margin:auto auto;"/>
	</div>
</div>


<div class="weui-search-bar" id="searchBar">


	<a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
</div>

<div class="weui-panel weui-panel_access">
	<div class="weui-panel__hd">个人所有需求</div>
	<div class="weui-panel__bd" id="data">
		<!--<a href="demrelease.html" class="weui-media-box weui-media-box_appmsg">-->
		<!--<div class="weui-media-box__bd">-->
		<!--<h4 class="weui-media-box__title">个人需求</h4>-->
		<!--<p class="weui-media-box__desc">个人需求介绍 个人需求介绍 个人需求介绍</p>-->
		<!--</div>-->
		<!--</a>-->

	</div>

</div>
<script>
    $.ajaxSetup({
        xhrFields: {
            withCredentials: isCrossDomain
        }
    });
    $(function () {
        $.get(mainurl+"need/getDemandList",function (data) {
            if(checkData(data)){
                var dat = data.data;
                for(var i=0; i<dat.length; i++) {
                    var d = dat[i];
                    var id = d.id;
                    var info = d.detail;
                    $("#data").append("<a href=\"demreleaseInfo.html?id="+id+"\" class=\"weui-media-box weui-media-box_appmsg\">\n" +
                        "            <div class=\"weui-media-box__bd\">\n" +
                        "                <h4 class=\"weui-media-box__title\">需求编号："+id+"</h4>\n" +
                        "                <p class=\"weui-media-box__desc\">"+info+"</p>\n" +
                        "            </div>\n" +
                        "        </a>");
                }

            }
        })
    });

</script>
</body>

</html>